package com.example.park_management.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;


@TableName(value ="employees")
@Data
public class Employees implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer employeeId;

    private String username;

    private String password;

    private Integer departmentId;

    private String realName;

    private Integer gender;

    private String email;

    private String phoneNumber;

    private String idNumber;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date entryTime;

    @TableField(exist = false)
    private List<String> roles;

    private String imageUrl;

    private static final long serialVersionUID = 1L;
}